package com.lightboat.system.domain.request;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.lightboat.common.annotation.Excel;
import com.lightboat.common.core.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.SchemaProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 评论查询请求
 * 
 * @author lightboat
 * @date 2025-08-21
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(title = "评论查询请求")
public class CrmCommentQueryRequest extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 评论ID
     */
    @SchemaProperty(name = "评论ID")
    @TableId(type = IdType.INPUT)
    private Long commentId;

    /** 订单ID */
    @SchemaProperty(name = "订单ID")
    @Excel(name = "订单ID")
    private Long orderId;

    /** 商品ID */
    @SchemaProperty(name = "商品ID")
    @Excel(name = "商品ID")
    private Long productId;

    /** 客户ID */
    @SchemaProperty(name = "客户ID")
    private Long customerId;

    /** 评分（1-5星） */
    @SchemaProperty(name = "评分（1-5星）")
    @Excel(name = "评分", readConverterExp = "1=-5星")
    private String score;

    /** 评论内容 */
    @SchemaProperty(name = "评论内容")
    @Excel(name = "评论内容")
    private String content;

    /** 申诉状态（0:未申诉 1:已申诉） */
    @SchemaProperty(name = "申诉状态（0:未申诉 1:已申诉）")
    @Excel(name = "申诉状态", readConverterExp = "0=:未申诉,1=:已申诉")
    private Integer appealStatus;

    /** 用户昵称 */
    @SchemaProperty(name = "用户昵称")
    @Excel(name = "用户昵称")
    private String nickName;

    /** 是否精选评论（0:否 1:是） */
    @SchemaProperty(name = "是否精选评论（0:否 1:是）")
    @Excel(name = "是否精选评论", readConverterExp = "0=:否,1=:是")
    private Integer selected;
}
